Skip to main content

Resellers Levels API

POST /getResellersLevels

Description

This API endpoint retrieves a list of reseller levels, including their details such as name, discount percentage, and minimum score requirements.

Request Body

The request uses GraphQL to perform the getResellersLevels query, which does not require any variables.

Query:

query getResellersLevels {
getResellersLevels {
id
name
discountPercent
minScore
}
}

GraphQL Variables:

{}

Example Request:

curl --location '' \
--header 'Content-Type: application/json' \
--data '{"query":"query getResellersLevels {\n getResellersLevels {\n id\n name\n discountPercent\n minScore\n }\n}","variables":{}}'

Response:

  • Success (200 OK):

    • The response includes a list of reseller levels with their details.
    {
    "data": {
    "getResellersLevels": [
    {
    "id": 1,
    "name": "Gold",
    "discountPercent": 20,
    "minScore": 1000
    },
    {
    "id": 2,
    "name": "Silver",
    "discountPercent": 10,
    "minScore": 500
    }
    // More reseller levels...
    ]
    }
    }
  • Error (4XX/5XX):

    • If there is an issue with the request or server error, the response will include an error message and status code.

Note:

This endpoint provides information about the different levels available for resellers, including their names, discount percentages, and the minimum scores required to achieve those levels.